package demo;
public class MainIn {
    public static void walk(IRunning running){
        running.run();
    }
    public static void main(String[] args) {
        Cat cat=new Cat("mimi");
        walk(cat);
        Duck duck=new Duck("duck");
        walk(duck);
        Frog forg=new Frog("forg");
        walk(forg);
        Car car=new Car("car");
        walk(car);
    }
}
